home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form frmTrashCan
- BorderStyle = 3 'Fixed Double
- Caption = "Dust Bin"
- ClientHeight = 735
- ClientLeft = 2505
- ClientTop = 4755
- ClientWidth = 2025
- Height = 1140
- Icon = VBDROP.FRX:0000
- Left = 2445
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 735
- ScaleWidth = 2025
- Top = 4410
- Width = 2145
- WindowState = 1 'Minimized
- Begin MsgBlaster cbkDragDrop
- Prop8 = "Click on ""..."" for the About Box ---->"
- Prop9 = "Click on ""..."" for the Message Center --->"
- Left = 1380
- MsgList = VBDROP.FRX:0302
- MsgPassage = VBDROP.FRX:0366
- TargetName = "frmTrashCan"
- Top = 120
- UserMsgs = VBDROP.FRX:0398
- Version = "2.0"
- End
- Begin Image imgTrash
- Height = 480
- Index = 1
- Left = 720
- Picture = VBDROP.FRX:0735
- Top = 90
- Visible = 0 'False
- Width = 480
- End
- Begin Image imgTrash
- Height = 480
- Index = 0
- Left = 150
- Picture = VBDROP.FRX:0A37
- Top = 90
- Visible = 0 'False
- Width = 480
- End
- Option Explicit
- ' Copyright
- 1994 by Computer Technologies, Inc. All rights reserved.
- Sub cbkDragDrop_Message (MsgVal As Integer, wParam As Integer, lParam As Long, ReturnVal As Long)
- ' Copyright
- 1994 by Computer Technologies, Inc. All rights reserved.
- Dim tFileNames As String
- Select Case MsgVal
- Case WM_SYSCOMMAND
- If wParam = IDM_ABOUT Then Call APP_About
- Case WM_DROPFILES
- Me.Icon = imgTrash(1).Picture
- Me.Refresh
- Screen.MousePointer = 11
- tFileNames = UT_DropFileNames(MsgVal, wParam, lParam)
- APP_DeleteFiles tFileNames
- Screen.MousePointer = 0
- Me.Icon = imgTrash(0).Picture
- Me.Refresh
- End Select
- End Sub
- Sub Form_Load ()
- ' Copyright
- 1994 by Computer Technologies, Inc. All rights reserved.
- Dim nMsgCtr As Integer
- Dim hMenu As Integer
- Dim nResult As Integer
- nMsgCtr = UT_DropEnable((Me.hWnd), Me.cbkDragDrop, 0, True)
- ' Now we get a copy of the system menu and remove the seperator bars.
- hMenu = APIGetSystemMenu((frmTrashCan.hWnd), False)
- nResult = APIDeleteMenu(hMenu, 0, MF_BYCOMMAND)
- nResult = APIDeleteMenu(hMenu, 0, MF_BYCOMMAND)
- ' Add our own 'About...' item to the menu
- nResult = APIAppendMenu(hMenu, MF_SEPARATOR, 0, "")
- nResult = APIAppendMenu(hMenu, MF_ENABLED Or MF_STRING, IDM_ABOUT, "About ...")
- ' Tell message blaster that we want to see menu commands
- cbkDragDrop.MsgList(nMsgCtr + 1) = WM_SYSCOMMAND
- ' Show the about box ...
- Call APP_About
- End Sub
-